﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System.ComponentModel.DataAnnotations;
namespace DNA.Mvc
{
    /// <summary>
    /// Define a simple message object.
    /// </summary>
    public class SimpleMessage : IMessage
    {
        /// <summary>
        /// Gets/Sets the message title.
        /// </summary>
        [MaxLength(1024)]
        public virtual string Title { get; set; }

        /// <summary>
        /// Gets/Sets the message content
        /// </summary>
        [Column(TypeName = "ntext")]
        public virtual string Content { get; set; }

        /// <summary>
        /// Get/Sets the content encoding.
        /// </summary>
        [MaxLength(50)]
        public virtual string Encoding { get; set; }

        /// <summary>
        /// Gets/Sets the content type.
        /// </summary>
        [MaxLength(50)]
        public virtual string ContentType { get; set; }

        [NotMapped]
        public virtual string TypeName { get; set; }
    }
}
